Optimal. Leaf size=31 \[ b c \sqrt {1-\frac {1}{c^2 x^2}}-\frac {a+b \sec ^{-1}(c x)}{x} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.02, antiderivative size = 31, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, integrand size = 12, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.167, Rules used = {5220, 261} \[ b c \sqrt {1-\frac {1}{c^2 x^2}}-\frac {a+b \sec ^{-1}(c x)}{x} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 261
Rule 5220
Rubi steps
\begin {align*} \int \frac {a+b \sec ^{-1}(c x)}{x^2} \, dx &=-\frac {a+b \sec ^{-1}(c x)}{x}+\frac {b \int \frac {1}{\sqrt {1-\frac {1}{c^2 x^2}} x^3} \, dx}{c}\\ &=b c \sqrt {1-\frac {1}{c^2 x^2}}-\frac {a+b \sec ^{-1}(c x)}{x}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.03, size = 40, normalized size = 1.29 \[ -\frac {a}{x}+b c \sqrt {\frac {c^2 x^2-1}{c^2 x^2}}-\frac {b \sec ^{-1}(c x)}{x} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 1.23, size = 27, normalized size = 0.87 \[ -\frac {b \operatorname {arcsec}\left (c x\right ) - \sqrt {c^{2} x^{2} - 1} b + a}{x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.15, size = 43, normalized size = 1.39 \[ {\left (b \sqrt {-\frac {1}{c^{2} x^{2}} + 1} - \frac {b \arccos \left (\frac {1}{c x}\right )}{c x} - \frac {a}{c x}\right )} c \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.05, size = 62, normalized size = 2.00 \[ c \left (-\frac {a}{c x}+b \left (-\frac {\mathrm {arcsec}\left (c x \right )}{c x}+\frac {c^{2} x^{2}-1}{\sqrt {\frac {c^{2} x^{2}-1}{c^{2} x^{2}}}\, c^{2} x^{2}}\right )\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.31, size = 33, normalized size = 1.06 \[ {\left (c \sqrt {-\frac {1}{c^{2} x^{2}} + 1} - \frac {\operatorname {arcsec}\left (c x\right )}{x}\right )} b - \frac {a}{x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.64, size = 36, normalized size = 1.16 \[ b\,c\,\sqrt {1-\frac {1}{c^2\,x^2}}-\frac {a}{x}-\frac {b\,\mathrm {acos}\left (\frac {1}{c\,x}\right )}{x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 1.77, size = 36, normalized size = 1.16 \[ \begin {cases} - \frac {a}{x} + b c \sqrt {1 - \frac {1}{c^{2} x^{2}}} - \frac {b \operatorname {asec}{\left (c x \right )}}{x} & \text {for}\: c \neq 0 \\- \frac {a + \tilde {\infty } b}{x} & \text {otherwise} \end {cases} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________